In [1]:
%pylab
%matplotlib inline
In [2]:
cd ..
In [3]:
import sys
import numpy as np
import skimage
import cv2
import sklearn
import imp
In [4]:
from holoviews import *
In [5]:
import neukrill_net.utils
import neukrill_net.highlevelfeatures
In [6]:
settings = neukrill_net.utils.Settings('settings.json')
In [7]:
X,y = settings.flattened_train_paths(settings.classes)
In [8]:
attrlst = ['height','width','numpixels','aspectratio','mean','std','stderr','numwhite','propwhite','numnonwhite','propnonwhite','numblack','propblack','numbool','propbool']
In [9]:
hlf = neukrill_net.highlevelfeatures.BasicAttributes(['height','width'])
In [10]:
XA = hlf.transform(X)
In [11]:
XA.shape
Out[11]:
In [12]:
np.amin(XA,1)
Out[12]:
In [13]:
XA_ = hlf.transform(settings.image_fnames['test'])
In [14]:
XA_.shape
Out[14]:
In [15]:
np.amin(XA_,1)
Out[15]:
In [ ]:
hlf = neukrill_net.highlevelfeatures.BasicAttributes(attrlst)